package com.authine.cloudpivot.ext.applicationservice;


import com.alibaba.cola.dto.SingleResponse;
import com.authine.cloudpivot.ext.dto.OrderSimple;
import com.authine.hermes.app.launcher.service.ApplicationService;
import com.authine.mvp.app.launcher.dto.bo.response.BO;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import lombok.extern.slf4j.Slf4j;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import static com.authine.hermes.app.launcher.service.ApplicationServiceFoundation.CUSTOM_SERVICE;


@Path("TestService")
@Slf4j
public class TestService extends ApplicationService {


    @Path("testZhuanCai")
    @POST
    @Operation(summary = "测试转采服务", tags = CUSTOM_SERVICE)
    public SingleResponse<BO> testZhuanCai(@Parameter OrderSimple orderSimple) {
        log.info("--------Begin of method,methodName：{}--------", Thread.currentThread().getStackTrace()[1].getMethodName());

        log.info("request param:{}", orderSimple);
        return SingleResponse.buildSuccess();
    }






}